package com.lagou.homework.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
public class ConfigTest {

    @Value("${getway.second}")
    private int port;

    @PostMapping("/config")
    public int config(){
        return port;
    }
}
